<?php

namespace Html\Model;

class Index {
    public function index($id=0) {
        $dbSql = "SELECT html FROM html WHERE id=:id";
        try {
            $dbStmt = \Db::GET()->prepare($dbSql);
            $dbStmt->execute([':id'=>$id]);
            $dbRij = $dbStmt->fetch(\PDO::FETCH_ASSOC);
            return $dbRij['html'];
        } catch (PDOException $ex) {

        }
    }
}
